package cn.tedu.test.luban.demo.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Bean02 {
    @Value("${luban.user.name}")
    private String username;
    public void hello(){
        System.out.println("拿到属性:"+username);
    }
    public Bean02() {
        System.out.println("当前bean02被容器加载了");
    }
}
